package com.px.chapter_Dec_1.textt;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.function.Consumer;

public class MapDemo0_1 {
    public static void main(String[] args) {
        Map<String,Object> userMap1=new HashMap<>();
        Map<String,Object> userMap2=new HashMap<>();
        ArrayList<User> users1=new ArrayList<>();
        ArrayList<User> users2=new ArrayList<>();
        ArrayList<Map<String,Object>> users3=new ArrayList<>();
        users3.add(userMap1);
        users3.add(userMap2);
        users1.add(new User("王2",10));
        users1.add(new User("王3",19));
        users1.add(new User("王54",20));
        users1.add(new User("王13",7));
        users2.add(new User("张2",67));
        users2.add(new User("张4",90));
        users2.add(new User("张1",34));
        userMap1.put("size",users1.size());
        userMap1.put("list",users1);
        userMap2.put("size",users2.size());
        userMap2.put("list",users2);
    }
}
